package Structural.Proxy.demo4;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author : yue.cao
 * @since : 2021-04-29
 */
@Aspect
public class TimeProxy2 {

	@Before("execution(void Structural.Proxy.demo4.Tank.move())")
	public void beforeDoSomeThing() {
		System.out.println("before done" + System.currentTimeMillis());
	}


	// 在表达式所表示的方法执行之前执行
	@After("execution(void Structural.Proxy.demo4.Tank.move())")
	public void afterDoSomeThing() {
		System.out.println("after done" + System.currentTimeMillis());
	}

}
